#ifndef COMPONENTWIDGET_H
#define COMPONENTWIDGET_H

#include <QWidget>
#include <QScrollArea>
#include "common.h"
#include "nofocusdelegate.h"

class QListWidget;
class QListWidgetItem;
class ItemWidget;
class QScrollArea;

class ComponentWidget : public QScrollArea
{
    Q_OBJECT
public:
    explicit ComponentWidget(QScrollArea *parent = nullptr);
    ~ComponentWidget();
    void show_list_widget();
signals:
    void sgl_to_mainwindow_for_create_item(ObjectInfo info, QPoint point);

private slots:
    void SltMouseDoubleClick(QString name);
    void SltMouseRelease(ObjectInfo param, QPoint pos);
private:

    QListWidget *list_widget;
};

#endif // COMPONENTWIDGET_H
